package com.young.commom.httpclient;

import com.young.common.core.util.Utils;

/**
 * @description：
 * @author: yangyahui01
 * @date: 11/29/24 12:31 PM
 */
public class HttpResult {
    private int code;
    private String content;

    public HttpResult() {
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isSuccess() {
        return Utils.isHttpSuccess(this.code);
    }
}
